<%@page import="board.BoardVo"%>
<%@page import="java.util.Vector"%>
<%@page import="board.Board"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>


</style>
<script>

function view(s){
	location.href='index2.jsp?inc_content=./board/view.jsp&serial=' + s;
}


</script>
</head>
<body>
<jsp:useBean id="boardVo" class="board.BoardVo"/>
<jsp:setProperty property="*" name="boardVo"/>

<%
	String part=(String)session.getAttribute("part");
	boardVo.setPart("공지사항");
	
	Board board = new Board();
	board.setVo(boardVo);
	board.setNowPage(boardVo.getNowPage());
	Vector<BoardVo> v2= board.list();
%>



<div align="center">제 목</div>
<hr width=100% align="left" noshade="noshade" height=1px;>



<% for(int i=0; i<v2.size(); i++){
	BoardVo vo= v2.get(i);%>
	<br/>
<%if (vo.getSerial() == vo.getGrp()){ %>
	<a href='#' onclick='view(<%=vo.getSerial()%>)'>[<%=vo.getPart() %>]<%=vo.getSubject()%>(<%=vo.getHit() %>)</a></div>
<%}} %>
<hr width=100% align="left" noshade="noshade" height=3px;>

</body>
</html>